<?php

use Illuminate\Routing\Router;


Route::group([
    'prefix' => 'admin/shortlink',
    'namespace' => 'Frieza\\Modules\\Shortlink\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/index', 'IndexController@index');
    $router->get('/create','IndexController@create');
    $router->delete('/index/{id}', 'IndexController@delete');
    $router->get('/batchCreate','IndexController@batchCreate');
    $router->get('/cate/create', 'IndexController@createCate');
    $router->get('/cate/reason', 'IndexController@reason')->name('shortlink.reason');
    $router->post('/cate/save', 'IndexController@saveCate');
    $router->post('/save', 'IndexController@save');
    $router->post('/batchSave', 'IndexController@batchSave');
});
